package com.itheima.mapper;

import com.itheima.pojo.LoginInfo;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    Long count();

    List<User> list(Integer start, Integer pageSize,String name, Integer gender);

    @Select("select * from user where username=#{username} and password = #{password}")
    User getJwt(User user);
}
